﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Interfaces;

namespace SQLDao
{
    public class SQL_DAO_Factory : IDAOFactory
    {
        IUserDAO userdao = new SQL_User_DAO();
        IRoleDAO roledao = new SQL_Role_DAO();
        IHostedFileDAO hfdao = new SQL_HostedFile_DAO();

        public SQL_DAO_Factory()
        {
            SQL_DAO_Connection.Connect();
        }

        public IUserDAO GetUserDAO()
        {
            return userdao;
        }

        public IRoleDAO GetRoleDAO()
        {
            return roledao;
        }

        public IHostedFileDAO GetHostedFileDAO()
        {
            return hfdao;
        }

        public IStorageDAO GetStorageDAO()
        {
            return null;
        }

    }
}
